﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
using DAL;
using Model;
namespace UI.system.page.menu
{
    public partial class menuadd : BaseAdmin
    {
        public MenuInfo info = new MenuInfo();
        public List<MenuInfo> parentlist = new List<MenuInfo>();
        public List<BtnsInfo> btnslist = new List<BtnsInfo>();
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = JobRequest.GetRequestInt("id");
            parentlist = MenuDAL.FindByParentID(0);
            btnslist = BtnsDAL.FindAll();
            if (id != 0)
            {
                info = MenuDAL.FindOneByID(id);
            }
            else
            {
                info.ParentID = JobRequest.GetRequestInt("parentid");
            }
            
        }
    }
}